<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
    function countdown(title,Intime){
        var online= new Date(Intime);
        var now = new Date();
        var leave = online.getTime() - now.getTime();
        var day = Math.floor(leave / (1000 * 60 * 60 * 24))+1;
        if (day > 1){
            document.write("距"+ title+"还有"+day+"天！");
        }else if (day == 1){
            document.write("明天就是"+title+"啦，希望你能考个好成绩！");
        }else if (day == 0){
            document.write("今天就是2021年高考，不要太担心，只要发挥出自己的正常水平就可以，加油^x^");
        }else{
            document.write(title+"已经过了，你考的怎么样呢！");
        }
    }
    countdown("2021年高考","2021/6/7");
</script>

</body>
</html>
